anchor using javascript
i am making a javascipt function to make show and hide, but i have a problem that i cant use this function by anchors.
<div id="show2" class="show_span" style="cursor:pointer; display:inline;" onclick="showhidefn('doc2','show2');[b:1e1dn1bo][color=#800040:1e1dn1bo]location.href='#1' [/color:1e1dn1bo]"[/b:1e1dn1bo] >
i need to make it using anchors. but the anchor is not working well wiz me using js.
can anyone help me to make the anchor using js?